package gson;

import Domain.User;
import ThriftExam.ThriftExam;
import com.google.gson.Gson;
import com.google.gson.JsonElement;

/**
 * Created with IntelliJ IDEA.
 * User: belict
 * Date: 12/2/13
 * Time: 1:05 PM
 * To change this template use File | Settings | File Templates.
 */
public class Run {
    public static void main(String[] args) {
        testGsonPrimitives();

    }

    private static void testGsonPrimitives() {
        Gson gson = new Gson();
        User user = new User();
        user.setGender(User.Gender.FEMALE);
        User.Name name = new User.Name();
        name.setFirst("alex");
        name.setLast("radchykov");
        user.setName(name);
        user.setVerified(true);

        System.out.println(user);
        System.out.println(gson.toJson(user));

    }
}
